//
//  NSCalendar+ZCExtension.m
//  ZCBaiSi
//
//  Created by zc on 2016/10/26.
//  Copyright © 2016年 zc. All rights reserved.
//

#import "NSCalendar+ZCExtension.h"

@implementation NSCalendar (ZCExtension)
+ (instancetype)calendar{
    if ([NSCalendar instancesRespondToSelector:@selector(calendarWithIdentifier:)]) {
        return [NSCalendar calendarWithIdentifier:NSCalendarIdentifierGregorian];
    }else{
        return [NSCalendar currentCalendar];
    }
}
@end
